var app = angular.module("app", ['ui.router']);
app.controller("ctrl", function($scope) {

})

app.config(function($stateProvider, $urlRouterProvider) {
  $stateProvider
  .state("shouye", {
    url: "/shouye",
    templateUrl: "html/shouye.html",
    controller:function($state){
    	$state.go("shouye.hot")
    }
   
  })
  .state("fenlei", {
    url: "/fenlei",
    templateUrl: "html/fenlei.html",
   
  })
  .state("myde", {
    url: "/myde",
    templateUrl: "html/myde.html",
   controller:function($state){
    	$state.go("myde.like")
    }
  })
  .state("shouye.hot", {
    url: "/hot",
    templateUrl: "html/hot.html",
			controller: "ctrl"
    
   
  })
  .state("shouye.shou", {
    url: "/shou",
    templateUrl: "html/shou.html",
			controller: "ctrl"
   })
  .state("myde.like", {
    url: "/like",
    templateUrl: "html/like.html",
			controller: "ctrl"
   })
  .state("myde.likes", {
    url: "/likes",
    templateUrl: "html/likes.html",
			controller: "ctrl"
   })
//.state("hot", {
//  url: "/hot",
//  templateUrl: "html/hot.html",
//			controller: "ctrl"
//  
// 
//})
  $urlRouterProvider.otherwise('/shouye/hot')
})
